import {createApp} from 'vue';
import {createPinia} from 'pinia';
import App from './App.vue';

import ElementPlus from 'element-plus';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import './tailwindcss/input.css';
import 'element-plus/dist/index.css';
import './iconfont/iconfont.css';
import Vant from 'vant'
import 'vant/lib/index.css'
import 'v3-easyui/dist/themes/default/easyui.css';
import 'v3-easyui/dist/themes/icon.css';
import 'v3-easyui/dist/themes/vue.css';
import EasyUI from 'v3-easyui';

const app = createApp(App);
app.use(createPinia());

// 全局注册element-plus的图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.use(ElementPlus, {size: 'small', locale: zhCn})
  .use(Vant)
  .use(EasyUI)
  .mount('#app');
